I know this looks strange, but check your Mac storage space. If you are missing space, Xcode reports a lot of different errors, but most of the time it doesn't report that disk space is low.
Topic:
Developer Tools & Services
SubTopic:
Xcode
Tags: